import request from '@/utils/request'

// 查询停工日志列表
export function listBizStoppageLog(query) {
  return request({
    url: '/production/bizStoppageLog/list',
    method: 'get',
    params: query
  })
}

// 查询停工日志所有列表
export function listAllBizStoppageLog(query) {
  return request({
    url: '/production/bizStoppageLog/listAll',
    method: 'get',
    params: query
  })
}

// 查询停工日志详细
export function getBizStoppageLog(id) {
  return request({
    url: '/production/bizStoppageLog/getInfo/' + id,
    method: 'get'
  })
}

// 新增停工日志
export function addBizStoppageLog(data) {
  return request({
    url: '/production/bizStoppageLog/add',
    method: 'post',
    data: data
  })
}

// 修改停工日志
export function updateBizStoppageLog(data) {
  return request({
    url: '/production/bizStoppageLog/edit',
    method: 'post',
    data: data
  })
}

// 删除停工日志
export function delBizStoppageLog(id) {
  return request({
    url: '/production/bizStoppageLog/remove/' + id,
    method: 'get'
  })
}
